Use "/local:" prefix in Eshell to run local commands when cwd is remote
authorJim Porter <jporterbugs@gmail.com>
Fri, 10 May 2024 19:22:52 +0000 (12:22 -0700)
committerJim Porter <jporterbugs@gmail.com>
Thu, 16 May 2024 01:50:54 +0000 (18:50 -0700)
commite260bf1be7b03c21988a2090cde31970bd6bbfc9
tree8a3746e8e65a04f7474fa747564590ba28fd19ed
parentc85294a6132e57bc0d24e39589b2c6163c11ca87
Use "/local:" prefix in Eshell to run local commands when cwd is remote

* lisp/eshell/esh-ext.el (eshell-explicit-remote-commands)
(eshell-explicit-command): Update docstrings.
(eshell--local-prefix): New constant.
(eshell-handle-remote-command): Remove.
(eshell-quoted-file-command): New function...
(eshell-ext-initialize): ... add it as a hook.
(eshell-remote-command): Support running commands on localhost.
(eshell-connection-local-command): Rename from
'eshell-external-command'.
(eshell-external-command): New implementation calling
'eshell-remote-command' or 'eshell-connection-local-command' as
appropriate.

* test/lisp/eshell/esh-ext-tests.el
(esh-ext-test/explicitly-local-command): Update test.

* doc/misc/eshell.texi (Remote Access): Update documentation.

* etc/NEWS: Update announcement.
doc/misc/eshell.texi
etc/NEWS
lisp/eshell/esh-ext.el
test/lisp/eshell/esh-ext-tests.el